import percent from './percent.js';
// import axios from 'axios';//

//获取按钮
let btns = document.querySelectorAll('button');

btns[0].onclick = function(){
    if(percent(30)){
        alert('恭喜恭喜, 奖品为 QQ 会员一个月~~ ')
    }else{
        alert('再接再厉~~ 下次一定~')
    }
}

btns[1].onclick = function(){
    // axios('http://api.xiaohigh.com/lol')
}